package com.shoppingmall.bean;

/**
 * 用户登陆实体类
 * @author LIU
 * @version 1.0 2017-11-8
 */
public class UserLoginBean {

	/**
	 * 用户登录的id
	 */
	private int userId;
	
	/**
	 * 用户名
	 */
	private String username;
	
	/**
	 * 用户密码
	 */
	private String password;
	
	/**
	 * 用户登录的id
	 * @return int
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * 用户名
	 * @return String
	 */
	public String getUsername() {
		return username;
	}
	
	/**
	 * 用户密码
	 * @return String
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * 用户登录的id
	 * @param userId
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	/**
	 * 用户名
	 * @param username
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	
	/**
	 * 用户密码
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Override
	public String toString() {
		return "UserLoginEntity [userId=" + userId + ", username=" + username + ", password=" + password + "]";
	}
	
	
	public UserLoginBean() {};
	public UserLoginBean(int userId, String username, String password) {
		super();
		this.userId = userId;
		this.username = username;
		this.password = password;
	}
	
	public UserLoginBean(String username, String password) {
		super();
		this.username = username;
		this.password = password;
	}
	
	
}
